package day0525;
public   class  F7{
    public static void main(String[] args){
        int rows=239;
        int pageSize=10;
        int pages=0;
        if(rows%10 ==0 ){
            System.out.println(rows/pageSize);
            pages=rows/pageSize;
        }else{
            System.out.println(rows/pageSize+1);
            pages=rows/pageSize+1;
        }





        int n=7;
        if(n<=pages){
            System.out.println("起始条数为：" +(pageSize*(n-1)+1) + "本页的终止条数为:"+ n*pageSize);
        }else{
            System.out.println("您输入的页码非法");
        }

    }

}
